<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新话题类型</title>
</head>
<body>
	<h3>查找父类型</h3>
	<form action="post/findTitleTypeByKeyword.action">
		<table>
			<tr>
				<td><label>关键词：</label></td>
				<td><input name="keyword" type="text"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="查询"></td>
			</tr>
		</table>
	</form>
	<h3>查询结果</h3>
	<table>
		<tr>
			<th>编号</th>
			<th>名字</th>
		</tr>
		<c:if test="${list.size()<1 }">
			<tr>
				<td colspan="3">没有结果！</td>
			</tr>
		</c:if>
		<c:forEach items="${list}" var="ttype">
			<tr>
				<td>${ttype.unumber }</td>
				<td>${ttype.name }</td>
			</tr>
		</c:forEach>
	</table>
	<form action="/createNewType.action">
		<table>
			<tr>
				<td>父类型编号：</td>
				<td><input type="text" name="parentId"></td>
			</tr>
			<tr>
				<td>新类型名字：</td>
				<td><input type="text" name="name"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="保存">
				</innput></td>
			</tr>
		</table>
	</form>
</body>
</html>